using Microsoft.EntityFrameworkCore;using Microsoft.EntityFrameworkCore.Design;using Microsoft.Extensions.Configuration;namespace ERPBackend.Data{    public class DesignTimeDbContextFactory : IDesignTimeDbContextFactory<ApplicationDbContext>    {        public ApplicationDbContext CreateDbContext(string[] args)        {            IConfiguration configuration = new ConfigurationBuilder()                .SetBasePath(System.IO.Directory.GetCurrentDirectory())                .AddJsonFile("appsettings.json")                .Build();            var optionsBuilder = new DbContextOptionsBuilder<ApplicationDbContext>();            var connectionString = configuration.GetConnectionString("DefaultConnection");            optionsBuilder.UseSqlServer(connectionString);            return new ApplicationDbContext(optionsBuilder.Options);        }    }}